package com.huatai.saas.enums;

/**
 * @BelongsProject: nanming-saas
 * @BelongsPackage: com.huatai.saas.enums
 * @Author: hecaiy
 * @CreateTime: 2024-05-11  14:51
 * @Description: TODO
 * @Version: 1.0
 */
public enum AuthorizationStatusEnum {

	SUCCESS(10001,"成功",Boolean.TRUE),
	FAIL(10002,"授权已过期",Boolean.FALSE),
	EXPIRED(10003,"未授权",Boolean.FALSE);

	private Integer code;
	private String message;

	private Boolean isSuccess;


	AuthorizationStatusEnum(Integer code, String message, boolean isSuccess) {
		this.code = code;
		this.message = message;
		this.isSuccess = isSuccess;
	}

	public Boolean getSuccess() {
		return isSuccess;
	}

	public void setSuccess(Boolean success) {
		isSuccess = success;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
